/* VSCode主题适配CSS */

/* 根据VSCode主题调整下拉菜单和输入框样式 */
.data-table select,
.data-table input,
select,
input[type="text"],
input[type="number"] {
    background-color: var(--vscode-input-background, #ffffff) !important;
    color: var(--vscode-input-foreground, #000000) !important;
    border: 1px solid var(--vscode-input-border, #ced4da) !important;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 12px;
}

.data-table select:focus,
.data-table input:focus,
select:focus,
input:focus {
    outline: none !important;
    border-color: var(--vscode-focusBorder, #3498db) !important;
    box-shadow: 0 0 0 2px var(--vscode-focusBorder, rgba(52, 152, 219, 0.2)) !important;
}

/* 下拉菜单选项样式 */
.data-table select option,
select option {
    background-color: var(--vscode-dropdown-background, #ffffff) !important;
    color: var(--vscode-dropdown-foreground, #000000) !important;
    padding: 4px 8px;
}

/* 表格样式调整 */
.data-table {
    background-color: var(--vscode-editor-background, #ffffff);
    color: var(--vscode-editor-foreground, #000000);
}

.data-table th {
    background-color: var(--vscode-panel-background, #34495e) !important;
    color: var(--vscode-panel-foreground, #ffffff) !important;
}

.data-table td {
    border-bottom: 1px solid var(--vscode-panel-border, #dee2e6);
}

.data-table tbody tr:hover {
    background-color: var(--vscode-list-hoverBackground, #f8f9fa) !important;
}

.data-table tbody tr.selected {
    background-color: var(--vscode-list-activeSelectionBackground, #e3f2fd) !important;
    border-left: 4px solid var(--vscode-list-activeSelectionForeground, #2196f3);
}

/* 主体背景调整 */
body {
    background-color: var(--vscode-editor-background, #f8f9fa) !important;
    color: var(--vscode-editor-foreground, #333) !important;
}

/* 区域背景调整 */
.section {
    background-color: var(--vscode-panel-background, #ffffff) !important;
    border: 1px solid var(--vscode-panel-border, #e9ecef);
}

.section-header {
    background: var(--vscode-titleBar-inactiveBackground, linear-gradient(90deg, #f8f9fa, #e9ecef)) !important;
    border-bottom: 2px solid var(--vscode-panel-border, #dee2e6);
}

.section-header h2 {
    color: var(--vscode-titleBar-activeForeground, #2c3e50) !important;
}

/* 按钮样式调整 */
.btn-primary {
    background-color: var(--vscode-button-background, #3498db) !important;
    color: var(--vscode-button-foreground, #ffffff) !important;
}

.btn-primary:hover {
    background-color: var(--vscode-button-hoverBackground, #2980b9) !important;
}

/* 预览区域调整 */
.signal-preview {
    background-color: var(--vscode-textBlockQuote-background, #f8f9fa) !important;
    border: 2px dashed var(--vscode-panel-border, #dee2e6);
}

.preview-info {
    color: var(--vscode-descriptionForeground, #6c757d) !important;
}

/* DBC文本区域调整 */
.dbc-text {
    background-color: var(--vscode-textCodeBlock-background, #2d3748) !important;
    color: var(--vscode-editor-foreground, #e2e8f0) !important;
}

/* 计算区域调整 */
.calculation-area {
    background-color: var(--vscode-panel-background, #ffffff) !important;
    border: 1px solid var(--vscode-panel-border, #dee2e6);
}

.calc-input {
    background-color: var(--vscode-input-background, #ffffff) !important;
    color: var(--vscode-input-foreground, #000000) !important;
    border: 1px solid var(--vscode-input-border, #ced4da) !important;
}

/* 字节预览调整 */
.bit-cell {
    background-color: var(--vscode-panel-background, #ffffff) !important;
    color: var(--vscode-editor-foreground, #000000) !important;
}

.bit-cell.signal {
    background-color: var(--vscode-charts-green, #4CAF50) !important;
    color: #ffffff !important;
}

.bit-cell.mask {
    background-color: var(--vscode-charts-blue, #2196F3) !important;
    color: #ffffff !important;
}

/* 底部状态栏调整 */
.footer {
    background-color: var(--vscode-statusBar-background, #34495e) !important;
    color: var(--vscode-statusBar-foreground, #ffffff) !important;
    border-top: 2px solid var(--vscode-statusBar-border, #2c3e50);
}

/* 工具提示调整 */
.tooltip::after {
    background-color: var(--vscode-editorHoverWidget-background, #2d3748) !important;
    color: var(--vscode-editorHoverWidget-foreground, #ffffff) !important;
} 